Authentication
POST : http://<base_url>/digipay/v3/auth/authenticate
Basic Auth :
Digipay provides Authorization to clients through the Basic Auth header. Your Client ID will serve as your Username while the Secret Key will serve as your Password. The API will require this header for every request.
HEADERS:-
Parameter | Type | Description |
---|---|---|
UserName | String | Enter Client id as username |
Password | String | Enter Your secret key as Password |
Response:-
Response 200(OK)
{
"status_code": 200,
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJlMzgyYzEzMGFlOGU0YmRmYWIyZjg4ZTE0YjZjMTlhOSIsInJvbGVzIjpbIlJPTEVfTUVSQ0hBTlQiXSwiZXhwIjoxNzA2MTAwNTE4fQ.fYvleRbfU0kTo2DXK3nc_Kz2uCspiauU5G-PqsQIrio",
"expiry_time": "2024-01-24 18:18:38"
}
}
access_token : token returned if the client is verified
expiry_time : expiry time of token
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |